import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * @description 热门标签排行榜
 * 
 * @returns 
 */
export const tagHotList = (): AxiosPromise<any> => {
    return request({
      url: '/api/tag/get/hot',
      method: 'get',
    });
};

/**
 * @description 所有标签排行榜
 * 
 * @returns 
 */
export const tagList = (): AxiosPromise<any> => {
    return request({
      url: '/api/tag/get/all_select',
      method: 'get',
    });
};

/**
 * @description 标签搜索
 * 
 * @returns 
 */
export const tagSearch = (query?: any): AxiosPromise<any> => {
    return request({
      url: '/api/tag/search',
      method: 'post',
      data:query
    });
};



